package com.bfxy.rocketmq.common;

import com.bfxy.rocketmq.model.Student;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;

import java.util.Arrays;

/**
 * 常量类
 * @author 王毅
 */
@Slf4j
public class Contants {

    public static String NAMESRV_ADDR="101.37.145.51:9876";

    public static void main(String[] args) {
//        boolean localhost = BeanUtils.valid("localhost");
//        System.out.println(localhost);
//        String domain = BeanUtils.valid("localhost") ? "localhost" : "localhost".replaceAll("passport.", "");
//        System.out.println(domain);
//        String domain="sadsa";
//        String callBack="source";
//        String url ="?action=valid&callBack="+callBack;
//        if(StringUtils.isNotBlank(domain)){
//            url+= "&domain="+domain;
//        }
//        System.out.println(url);
          getInfo();
    }

    public static void getInfo(){
        Student student=Student.builder().id("1").name("張三").score("82").build();
        log.info("student name是{},student ID 是{}",student.getName(),student.getId());
        System.out.println(student.getName());
    }

}
